<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>创新智能-纤丝慧索</title>
    <!--    引入格式文件-->
    <script>
        function validateForm() {
            var x1 = document.forms["myform"]["data1"].value;
            if (x1 == null || x1 == "") {
                alert("请填写第1个数据");
                return false;
            }
            var x2 = document.forms["myform"]["data2"].value;
            if (x2 == null || x2 == "") {
                alert("请填写第2个数据");
                return false;
            }
            var x3 = document.forms["myform"]["data3"].value;
            if (x3 == null || x3 == "") {
                alert("请填写第3个数据");
                return false;
            }
            var x4 = document.forms["myform"]["data3"].value;
            if (x4 == null || x4 == "") {
                alert("请填写第4个数据");
                return false;
            }
            var x5 = document.forms["myform"]["data3"].value;
            if (x5 == null || x5 == "") {
                alert("请填写第5个数据");
                return false;
            }
            var x6 = document.forms["myform"]["data3"].value;
            if (x6 == null || x6 == "") {
                alert("请填写第6个数据");
                return false;
            }
            var x7 = document.forms["myform"]["data3"].value;
            if (x7 == null || x7 == "") {
                alert("请填写第7个数据");
                return false;
            }
            var x8 = document.forms["myform"]["data3"].value;
            if (x8 == null || x8 == "") {
                alert("请填写第8个数据");
                return false;
            }
            var x9 = document.forms["myform"]["data3"].value;
            if (x9 == null || x9 == "") {
                alert("请填写第9个数据");
                return false;
            }
            var x10 = document.forms["myform"]["data3"].value;
            if (x10 == null || x10 == "") {
                alert("请填写第10个数据");
                return false;
            }
            var x11 = document.forms["myform"]["data3"].value;
            if (x11 == null || x11 == "") {
                alert("请填写第11个数据");
                return false;
            }
            var x12 = document.forms["myform"]["data3"].value;
            if (x12 == null || x12 == "") {
                alert("请填写第12个数据");
                return false;
            }
        }
    </script>
</head>

<body>
    <style>
        * {
            margin: 0px;
            /*所有的外边距为0*/
            padding: 0px;
            /*所有的内边距为0*/
            box-sizing: border-box;
            /*规定两个并排的带边框的框*/
        }

        body {

            padding-top: 25px;
        }

        .rg_layout {
            width: 900px;
            height: 500px;
            border: 8px solid #EEEEEE;
            /*solid 定义实线*/
            background-color: white;
            margin: auto;
        }

        .rg_left {
            float: left;
            margin: 15px;
        }

        .rg_left>p:first-child {
            color: #FFD026;
            font-size: 20px;
        }

        .rg_left>p:last-child {
            color: #A6A6A6;
            font-size: 20px;
        }

        .rg_center {
            float: right;
        }

        .rg_right {
            float: right;
            margin: 15px;
            padding-left: 50px;
        }

        .rg_right p {
            font-size: 15px;
        }

        .rg_right p a {
            color: coral;
        }

        .td_left {
            width: 100px;
            text-align: right;
            height: 45px;
        }

        .td_right {
            padding-left: 50px;
        }

        #username,
        #password,
        #email,
        #name,
        #tel,
        #birthday,
        #checkcode {
            width: 251px;
            height: 32px;
            border: 1px solid #A6A6A6;
            /*设置边框圆角*/
            border-radius: 5px;
            padding-left: 10px;
        }

        #checkcode {
            width: 110px;
        }

        #img_check {
            height: 32px;
            vertical-align: middle;
            /*设置图片的位置垂直居中*/
        }

        #btn_sub {
            width: 100px;
            height: 40px;
            background-color: #FFD026;
            border: 1px solid #FFD026;
            padding-left: 10px;
        }
    </style>
    <div class="rg_layout">
        <div class="rg_left">
            <p>请输入数据</p>

        </div>
        <div class="rg_center">
            <div class="rg_form">
                <form action="#" method="post" id="myform" onsubmit="return validateForm()">
                    <table>
                        <tr><!--label 标签的作用是当点击文字也会跳到文本输出框-->
                            <!--for属性与ID属性对应规定 label 绑定到哪个表单元素。-->
                            <td class="td_left"><label for="data1">第一组数据</label> </td>
                            <td class="td_right"><input type="number" name="data1" id="data1"> </td>
                            <td class="td_right"><input type="number" name="data2" id="data2"> </td>
                            <td class="td_right"><input type="number" name="data3" id="data3"> </td>
                            <td class="td_right"><input type="number" name="data4" id="data4"> </td>
                        </tr>
                        <tr>
                            <td class="td_left"><label for="data5">第二组数据</label> </td>
                            <td class="td_right"><input type="number" name="data5" id="data5"> </td>
                            <td class="td_right"><input type="number" name="data6" id="data6"> </td>
                            <td class="td_right"><input type="number" name="data7" id="data7"> </td>
                            <td class="td_right"><input type="number" name="data8" id="data8"> </td>
                        </tr>
                        <tr><!--label 标签的作用是当点击文字也会跳到文本输出框-->
                            <td class="td_left"><label for="data9">第三组数据</label> </td>
                            <td class="td_right"><input type="number" name="data9" id="data9"> </td>
                            <td class="td_right"><input type="number" name="data10" id="data10"> </td>
                            <td class="td_right"><input type="number" name="data11" id="data11"> </td>
                            <td class="td_right"><input type="number" name="data12" id="data12"> </td>
                        </tr>




                        <tr>
                            <td colspan="2" align="center">
                                <input type="submit" value="分析" id="btn_sub">
                            </td>
                        </tr>

                    </table>
                </form>
            </div>
        </div>
    </div>

</body>

</html>